/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 设备检修结果记录项Entity
 * @author panda
 * @version 2017-12-02
 */
public class DevchkAnswerItem extends DataEntity<DevchkAnswerItem> {
	
	private static final long serialVersionUID = 1L;
	private String sortNum;		// 排序值
	private String ansItemContent;		// 回答项内容
	private String devchkAnswerId;		// 设备检修答案
	
	public DevchkAnswerItem() {
		super();
	}

	public DevchkAnswerItem(String id){
		super(id);
	}

	@Length(min=0, max=11, message="排序值长度必须介于 0 和 11 之间")
	public String getSortNum() {
		return sortNum;
	}

	public void setSortNum(String sortNum) {
		this.sortNum = sortNum;
	}
	
	@Length(min=0, max=50, message="回答项内容长度必须介于 0 和 50 之间")
	public String getAnsItemContent() {
		return ansItemContent;
	}

	public void setAnsItemContent(String ansItemContent) {
		this.ansItemContent = ansItemContent;
	}
	
	@Length(min=0, max=64, message="设备检修答案长度必须介于 0 和 64 之间")
	public String getDevchkAnswerId() {
		return devchkAnswerId;
	}

	public void setDevchkAnswerId(String devchkAnswerId) {
		this.devchkAnswerId = devchkAnswerId;
	}
	
}